﻿using Apps.Common;
using Apps.DAL.ERP;
//using Apps.DAL.;
using Apps.IBLL.ERP;
using Apps.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.BLL.ERP
{
    public partial class ERP_BLL : IERP_BLL
    {
        ERP_Repository dal = new ERP_Repository();

        public DataTable GetSamplingData(string batchType, string samplingStartTime, string samplingEndTime, string cph, string SPARESTR1 = "", string MATERIEL_NAME = "", string likeCode = "")
        {
            return dal.GetSamplingData(batchType, samplingStartTime, samplingEndTime, cph, SPARESTR1, MATERIEL_NAME, likeCode);
        }

        public DataTable GetSamplingData(string sparestr1)
        {
            return dal.GetSamplingData(sparestr1);
        }

        public DataTable GetTestData(string testCode)
        {
            return dal.GetTestData(testCode);
        }

        /// <summary>
        /// 是否已经结算
        /// </summary>
        /// <param name="testCode"></param>
        /// <returns></returns>
        public bool IsJieSuan(string testCode)
        {
            return dal.IsJieSuan(testCode);
        }
        /// <summary>
        /// 获取物流信息表中 煤种与代码对应表
        /// </summary>
        /// <returns></returns>
        public DataTable GetErpSpecifications()
        {
            return dal.GetErpSpecifications();
        }

        /// <summary>
        /// 根据物流流程编码 获取 入厂车辆  对应的煤种 以及 日期
        /// </summary>
        /// <param name="sparestr1"></param>
        /// <returns></returns>
        public DataTable GetErpCarInfoFromSparestr1(string sparestr1)
        {
            return dal.GetErpCarInfoFromSparestr1(sparestr1);
        }

        }
}
